<div id="resultat">
        	<div class="infos">{$nbAnnonceFound} resultats a partir de vos criteres<br />
Affinez votre recherche en ajoutant ou precisant <br />
certains criteres
			</div>
            {if sizeof($annonce)}
			<form action="">
            	<select class="sl" id="trie-resultat" name="trie-resultat"><option value="{jurl 'recherche~FoRecherche:index', array('limit'=>'20')}" {if isset($limit) && $limit == 20}SELECTED{/if}>20 par page</option><option value="{jurl 'recherche~FoRecherche:index', array('limit'=>'40')}" {if isset($limit) && $limit == 40}SELECTED{/if}>40 par page</option></select>
                <select id="trie-page" name="trie-page"><option>Trier Par</option>
                <option value="{jurl 'recherche~FoRecherche:index', array('order'=>'mark', 'limit'=>$limit)}" {if $order == 'mark'}SELECTED{/if}>marques</option>
                <option value="{jurl 'recherche~FoRecherche:index', array('order'=>'p', 'limit'=>$limit)}" {if $order == 'p'}SELECTED{/if}>prix</option>
                <option value="{jurl 'recherche~FoRecherche:index', array('order'=>'k', 'limit'=>$limit)}" {if $order == 'k'}SELECTED{/if}>km</option>
                <option value="{jurl 'recherche~FoRecherche:index', array('order'=>'a', 'limit'=>$limit)}" {if $order == 'a'}SELECTED{/if}>année</option>
                </select>
            </form>
            <form action="{jurl 'recherche~FoRecherche:index'}" method="post" name="form-sort" id="form-sort">
                <input type="hidden" name="order" id="order" value="{$order}" />
                <input type="hidden" name="limit" id="limit" value="{$limit}" />
                <select id="sort" name="sort" style="width: 100px;">
                <option value="ASC" {if $sort == 'ASC'}SELECTED{/if}>croissant</option>
                <option value="DESC" {if $sort == 'DESC'}SELECTED{/if}>décroissant</option>
                </select>
                </form>
                <form action="">
                <div class="pagination">
                    {if $oNavBar->iNbPages > 1 && $limit}
                        {if $oNavBar->iPrevPage > 0}
                            <a class="prec" href="{jurl 'recherche~FoRecherche:index', array('iCurrentPage' => $oNavBar->iPrevPage, 'limit'=>$limit, 'order'=>$order, 'sort'=>$sort)}" title="Précedente">Préc.</a>
                        {else}
                            <a class="prec" title="Précedente">Préc.</a>
                        {/if}

                        <div class="cont">
                            <span>Page</span>
                            <ul>
                                {foreach $oNavBar->tiPages as $iPage}
                                    <li>
                                        <a class="{if $iPage == $oNavBar->iCurrPage}active{/if}" href="{jurl 'recherche~FoRecherche:index', array('iCurrentPage' => $iPage, 'limit'=>$limit, 'order'=>$order, 'sort'=>$sort)}">{$iPage}</a>
                                    </li>
                                {/foreach}
                            </ul>
                                <span>... sur {$oNavBar->iNbPages}</span>
                        </div>
                        {if $oNavBar->iNbPages > $oNavBar->iCurrPage}
                            <a class="suiv" href="{jurl 'recherche~FoRecherche:index', array('iCurrentPage' => $oNavBar->iNextPage, 'limit'=>$limit, 'order'=>$order, 'sort'=>$sort)}" title="Suivante">Suiv.</a>
                        {/if}
                        {elseif $oNavBar->iNbPages}
                        {if $oNavBar->iPrevPage > 0}
                            <a class="prec" href="{jurl 'recherche~FoRecherche:index', array('iCurrentPage' => $oNavBar->iPrevPage)}" title="Précedente">Préc.</a>
                        {else}
                            <a class="prec" title="Précedente">Préc.</a>
                        {/if}

                        <div class="cont">
                            <span>Page</span>
                            <ul>
                                {foreach $oNavBar->tiPages as $iPage}
                                    <li>
                                        <a class="{if $iPage == $oNavBar->iCurrPage}active{/if}" href="{jurl 'recherche~FoRecherche:index', array('iCurrentPage' => $iPage)}">{$iPage}</a>
                                    </li>
                                {/foreach}
                            </ul>
                                <span>... sur {$oNavBar->iNbPages}</span>
                        </div>
                        {if $oNavBar->iNbPages > $oNavBar->iCurrPage}
                            <a class="suiv" href="{jurl 'recherche~FoRecherche:index', array('iCurrentPage' => $oNavBar->iNextPage)}" title="Suivante">Suiv.</a>
                        {/if}
                    {/if}
                </div>
                <div class="liste">
                	<div class="cont">
                    	<div class="title"><span class="s1">Marque / Modèle / Finition</span><a class="s2" href="{jurl 'recherche~FoRecherche:index', array('order'=>'p')}">Prix</a><a class="s3" href="{jurl 'recherche~FoRecherche:index', array('order'=>'k')}">Km</a><a class="s4" href="{jurl 'recherche~FoRecherche:index', array('order'=>'a')}">Année</a><a class="s5" href="{jurl 'recherche~FoRecherche:index', array('order'=>'d')}">Dpt.</a><a class="s6" href="{jurl 'recherche~FoRecherche:index', array('order'=>'v')}">Vend</a></div>
                        {assign $imgPath = PHOTO_ANNONCE_PATH}
                        {assign $block_class = ""}
                        {foreach $annonce as $k=>$item}
                        <div class="block{$block_class}">
                        	<div class="pic">
                                <a href="{jurl 'recherche~FoFiche:index', array('id'=>$item->IdOccasion)}">
                                    <img alt="" width="67" src="{$item->photo_name}" title="" />
                                </a>
                            </div>
                            <div class="desc">
                            	<p><span><a href="{jurl 'recherche~FoFiche:index', array('id'=>$item->IdOccasion)}">{$item->marque_libelle} {$item->modele_libelle}</a></span></p>
                            	<p><span><a href="{jurl 'recherche~FoFiche:index', array('id'=>$item->IdOccasion)}">{$item->Occas_Version}</a></span></p>
                                 <a class="link" href="#">Ajouter a ma selection</a>
                            </div>
							<div class="prix">{$item->Occas_Prix} €{if !$k}<a href="#" class="appel_gratuit"><img alt="Appel gratuit" src="{$j_basepath}design/front/images/appel_gratuit.png" title="Appel gratuit" /></a>{/if}</div>
 							<div class="km">{$item->Occas_Kilometrage}</div>
                            <div class="annee">{$item->Occas_Millesime}</div>
                            <div class="dpt">{$item->departement_num}</div>
                            <div class="vend">Part.</div>
                        </div>
                        {if $block_class == ""}{assign $block_class = "_"}{else}{assign $block_class = ""}{/if}
                        {/foreach}
                    </div>
                </div>
                <!--end liste-->
                <div class="pagination">
                	{if $oNavBar->iNbPages > 1 && $limit}
                        {if $oNavBar->iPrevPage > 0}
                            <a class="prec" href="{jurl 'recherche~FoRecherche:index', array('iCurrentPage' => $oNavBar->iPrevPage, 'limit'=>$limit, 'order'=>$order, 'sort'=>$sort)}" title="Précedente">Préc.</a>
                        {else}
                            <a class="prec" title="Précedente">Préc.</a>
                        {/if}

                        <div class="cont">
                            <span>Page</span>
                            <ul>
                                {foreach $oNavBar->tiPages as $iPage}
                                    <li>
                                        <a class="{if $iPage == $oNavBar->iCurrPage}active{/if}" href="{jurl 'recherche~FoRecherche:index', array('iCurrentPage' => $iPage, 'limit'=>$limit)}">{$iPage}</a>
                                    </li>
                                {/foreach}
                            </ul>
                                <span>... sur {$oNavBar->iNbPages}</span>
                        </div>
                        {if $oNavBar->iNbPages > $oNavBar->iCurrPage}
                            <a class="suiv" href="{jurl 'recherche~FoRecherche:index', array('iCurrentPage' => $oNavBar->iNextPage, 'limit'=>$limit, 'order'=>$order, 'sort'=>$sort)}" title="Suivante">Suiv.</a>
                        {/if}
                        {elseif $oNavBar->iNbPages}
                        {if $oNavBar->iPrevPage > 0}
                            <a class="prec" href="{jurl 'recherche~FoRecherche:index', array('iCurrentPage' => $oNavBar->iPrevPage)}" title="Précedente">Préc.</a>
                        {else}
                            <a class="prec" title="Précedente">Préc.</a>
                        {/if}

                        <div class="cont">
                            <span>Page</span>
                            <ul>
                                {foreach $oNavBar->tiPages as $iPage}
                                    <li>
                                        <a class="{if $iPage == $oNavBar->iCurrPage}active{/if}" href="{jurl 'recherche~FoRecherche:index', array('iCurrentPage' => $iPage)}">{$iPage}</a>
                                    </li>
                                {/foreach}
                            </ul>
                                <span>... sur {$oNavBar->iNbPages}</span>
                        </div>
                        {if $oNavBar->iNbPages > $oNavBar->iCurrPage}
                            <a class="suiv" href="{jurl 'recherche~FoRecherche:index', array('iCurrentPage' => $oNavBar->iNextPage)}" title="Suivante">Suiv.</a>
                        {/if}
                    {/if}
                </div>
            </form>
            {else}
            <!-- Formulaire : proposer à l'acheteur de l'ui envoyé un mail si aucun résultat-->
            <div class="env_mail">
                	<h3 style="color:#fff;">Alerte mail</h3>
                    <div class="wrap">
                        {if $nocritere}
                    	<span class="info"><h5>Vos coordonnées ont été enregistrées avec succès</h5></span>
                        {else}
                       	<span class="info"><h5>Si vous voulez recevoir un alerte mail quand les critères seront disponibles</h5></span>

                        <form class="wrap3" method="post" action="{jurl 'recherche~FoRecherche:index'}">
                            <input type="hidden" name="saveCritere" value="1"/>
                            <div class="rows"><label>Nom : </label><input type="text" name="nom" ></div>
                            <div class="rows"><label>Prénom : </label><input type="text" name="prenom" ></div>
                            <div class="rows"><label>E-mail : </label><input type="text" name="email" ></div>
                            <div class="rows"><input type="submit" title="Submit" value="" class="submit"></div>
                        </form>
                        {/if}
                    </div>
            </div>
            <!-- // end formulaire-->
            {/if}
                <div class="loin">
                	<h3>Pour aller plus loin</h3>
                    <div class="wrap">
                       {if $marque->marque_id}
                    	<span class="info">Info {$marque->marque_libelle}</span>
                        <ul class="info">
                            <!--{if $essIdLinked}-->
                                <li><a href="{jurl 'essais~FoEssaiRecherche:resultFicheEssaiConcurente',array('marque'=>$marque->marque_id,'modele'=>$modele->modele_id)}">Fiche technique {$marque->marque_libelle} {if $modele->modele_libelle}{$modele->modele_libelle}{/if}</a></li>
                            <!--{else}-->
                                {if is_array($essai) && $essai[0]->ess_id && !sizeof($version)}
                                    <li><a href="{jurl 'essais~FoEssai:index',array('id'=>$essai[0]->ess_id)}">Fiche technique {$marque->marque_libelle} {if $modele->modele_libelle}{$modele->modele_libelle}{/if}</a></li>
                                {elseif (sizeof($version))}
                                    <li><a href="{jurl 'essais~FoEssai:concurrence',array('id'=>$essai[0]->ess_id)}">Liste des versions {$marque->marque_libelle} {if $modele->modele_libelle}{$modele->modele_libelle}{/if}</a></li>

                                {else}
                                    <li><a href="{jurl 'essais~FoEssaiParMarque:modelesParMarque',array('idMarque'=>$marque->marque_id)}">Fiche technique {$marque->marque_libelle} {if $modele->modele_libelle}{$modele->modele_libelle}{/if}</a></li>
                                {/if}
                            <!--{/if}-->
                            <li><a href="#">Cote {$marque->marque_libelle} {if $modele->modele_libelle}{$modele->modele_libelle}{/if}</a></li>
                            <li>Acheter une pièce <a href="{jurl 'annonce~FoAnnonceFAQ:listePieceAuto',array('marque'=>$marque->marque_libelle)}"> {$marque->marque_libelle} {if $modele->modele_libelle}{$modele->modele_libelle}{/if}</a></li>
                        </ul>
                        {/if}
                        <ul class="devis">
                        	<li><a href="{jurl 'annonce~FoAnnonceFAQ:assuranceAuto'}">Devis d'assurance auto</a></li>
                            <li><a href="{$linkFinancement->param_content}">Devis de financement </a></li>
                        </ul>
                    </div>
                </div>
        </div>
       <!-- end result-->